#ifndef LOGIN_H
#define LOGIN_H

#include <QWidget>
#include "Beans/databeans.h"
#include <QtCharts>
#include "qchart.h"
#include <QtCharts/QChartView>
#include <QtCharts/QPieSeries>
#include <QtCharts/QPieSlice>
#include <QtCharts/QAbstractBarSeries>
#include <QtCharts/QPercentBarSeries>
#include <QtCharts/QStackedBarSeries>
#include <QtCharts/QBarSeries>
#include <QtCharts/QBarSet>
#include <QtCharts/QLineSeries>
#include <QtCharts/QSplineSeries>
#include <QtCharts/QScatterSeries>
#include <QtCharts/QAreaSeries>
#include <QtCharts/QLegend>
#include <QtCharts/QBarCategoryAxis>
#include <QtCharts/QValueAxis>
#include <QtCharts/QChartGlobal>
QT_BEGIN_NAMESPACE
namespace Ui { class Login; }
QT_END_NAMESPACE

class Login : public QWidget
{
    Q_OBJECT

public:
    Login(QWidget *parent = nullptr);
    ~Login();
    QChart *CreateLineChart_HR();
    void setHRData(QList<int>rr);
    void setValue(DataBeans db);
private:
    Ui::Login *ui;
    QChart *chart;
    QLineSeries *Series_HR;
    QValueAxis *xAxis_HR;
    QValueAxis *yAxis_HR;
    void InitialAxis_Chart_HR();
    QSettings *setting;
};
#endif // LOGIN_H
